export default {
  name: "Simple",
  schema: {
    description: "A simple from example",
    type: "object",
    required: ["firstName", "lastName"],
    properties: {
      firstName: {
        type: "string",
        default: "Chunk",
        title: "firstName",
      },
      lastName: {
        type: "string",
        title: "lastName",
      },
      telephone: {
        type: "string",
        minLength: 10,
        title: "telephone",
      },
      staticArray: {
        title: "staticArray",
        type: "array",
        items: [
          {
            type: "string",
          },
          {
            type: "number",
          },
        ],
      },
      singleTypeArray: {
        title: "singleTypeArray",
        type: "array",
        items: {
          type: "object",
          properties: {
            name: {
              type: "string",
            },
            age: {
              type: "number",
            },
          },
        },
      },
      multiSelectArray: {
        type: "array",
        items: {
          type: "string",
          enum: ["foo", "bar", "foobar"],
        },
        title: "multiSelectArray",
      },
    },
  },

  uiSchema: {
    title: "A registration from",
    properties: {
      firstName: {
        title: "First name",
      },
      lastName: {
        title: "Last name",
      },
      telephone: {
        title: "Telephone",
      },
    },
  },
  default: {
    firstName: "Chunk",
    lastName: "Norris",
    age: 75,
    bio: "Roundhouse kicking asses since 1940",
    password: "noneed",
    singleTypeArray: [{ name: "jack", age: 18 }],
    multiSelectArray: ["foo"],
  },
};
